<!DOCTYPE html>
<html>
	<head>
		<base href="#(basepath??)" />
		<meta charset="utf-8" />
		<title>#globalConfig(GlobalConfigKey.SYSTEM_NAME,"JBolt极速开发平台")</title>
		 #if(need_always_https)
	    	<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
		 #end
		<link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico" />
		<meta name="renderer" content="webkit">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		#@fontcss?()
		#@bootstrapcss?()
		#@logincss?()
	</head>
	<body>
	<div class="d-block p-4 my-4">
		<form id="loginForm" method="post" action="admin/login">
		<div class="form-group">
		<div class="input-group">
		 <div class="input-group-prepend">
		    <span class="input-group-text"><i class="fa fa-user"></i></span>
		  </div>
		<input type="text" autocomplete="off" data-rule="required"  data-tips="请输入用户名"  class="form-control" autocomplete="off" maxlength="20" autofocus="autofocus"  name="username" placeholder="请输入用户名"/>
		</div>
		</div>
		<div class="form-group">
		<div class="input-group">
		 <div class="input-group-prepend">
		    <span class="input-group-text"><i class="fa fa-lock"></i></span>
		  </div>
		<input type="password" class="form-control" data-rule="required" data-tips="请输入密码"  autocomplete="off" maxlength="20"  name="password" placeholder="请输入密码"/>
		</div>
		</div>
		#setLocal(needCapture=CACHE.isJBoltLoginUseCapture())
		#if(needCapture)
		<div class="form-group">
		<div class="input-group">
		 <div class="input-group-prepend">
		    <span class="input-group-text"><i class="fa fa-check-square" style="width:10px;"></i></span>
		  </div>
		<input type="text" autocomplete="off" data-rule="required" data-tips="请输入验证码"   class="form-control" maxlength="10" id="captcha" autocomplete="off" data-rule="required"  data-tips="请输入验证码" name="captcha" placeholder="请输入验证码"/>
		<div class="input-group-append" style="padding: 0px 0px;">
		    <img id="captchaimg" src="admin/captcha" onclick="changeCaptcha()"/>
		  </div>
		</div>
		</div>
		#end
		<div>
		</div>
		</form>
	</div>
	<script>var needPjax=false;</script>
	#@jqueryjs?()
	#@bootstrapjs?()
	#@jboltmaindialogjslib?()
	#@mainjs?()
	#@reloginjs?()
	<script>
$(function(){
	$("#loginForm").find("input").on("keyup",function(e){
		if(e.keyCode==13){
				submitThisForm(function(){
						parent.refreshPjaxContainer();
				});
			}
		});
})
	</script>
	</body>
</html>